
<script language="javascript" type="text/javascript" src="/assets/My97DatePicker/jquery-1.8.2.js"></script>
<script language="javascript" type="text/javascript" src="/assets/libs/fastadmin-layer/dist/layer.js"></script>
<div class="content">
    <div style="padding: 0 10px;font-size: 14px;height: 40px;line-height: 40px;">
        <a href="/admin/product/index">产品列表</a>
    </div>
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <div id="" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div class="bootstrap-table">
                        <div class="fixed-table-toolbar">
                            <div class="bs-bars pull-left">
                                <div id="toolbar" class="toolbar" style="position: relative;">
                                        <a href="" class="btn btn-success btn-add " title="添加"><i class="fa fa-plus"></i> 添加</a>
                                </div>
                            </div>
                           <form action="" method="post">
                                <table  class="table table-striped table-bordered table-hover table-nowrap" data-operate-edit="1" data-operate-del="1" width="100%" border="1">
                                    <thead>
                                    <tr>
                                        <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="id">
                                            <div class="th-inner ">ID</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="id">
                                            <div class="th-inner ">父级名称</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                            <div class="th-inner ">显示标题</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                            <div class="th-inner ">所属层级</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                            <div class="th-inner ">选择类型</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width: 20%;" data-field="operate">
                                            <div class="th-inner ">操作</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody data-listidx="0">
                                    {volist name="list" id="vo"}
                                    <tr>

                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$vo.id}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                           {$vo.father_title}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$vo.ptitle}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {$pptype[$vo['pptype']]}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {if condition="$vo.selecttype eq 1"}
                                            多选
                                            {else/}
                                            单选
                                            {/if}
                                        </td>

                                        <td style="text-align: center; vertical-align: middle; ">
                                            <a href="/admin/product/route_day?p_id={$vo.p_id}&package_id={$vo.id}" class="btn btn-success btn-add " title="行程维护"><i class="fa fa-plus"></i> 行程维护</a>
                                            <a href="/admin/product/route_index?p_id={$vo.p_id}&package_id={$vo.id}" class="btn btn-success btn-add " title="查看行程"><i class="fa fa-plus"></i> 查看行程</a>
                                            <a href="javascript:;" onclick="copy_select('{$vo.id}','{$vo.p_id}');" class="btn btn-success btn-add " title="复制行程"><i class="fa fa-plus"></i> 增加复制行程</a>

                                        </td>
                                    </tr>
                                    {/volist}

                                    </tbody>
                                </table>
                           </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

    <script>
        function copy_select(id,pid){
            //alert(id);alert(pid);return;
            var flag="route";
            layer.open({
                type: 2,
                title:"选择套餐行程",
                shift: 2,
                area: ['40%', '25%'],
                content: ['route_copy?id='+id+'&pid='+pid+'&flag='+flag,'no'],
                scrollbar: false ,//屏蔽浏览器滚动条
            });



        }
    </script>






